package d.n.d.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import d.n.d.dao.AccountDao;
import d.n.d.domain.Account;

/**
 * 
 * @author D.N.D
 * 
 */
@Service
public class AccountServiceImpl implements AccountService {

	@Autowired
	private AccountDao accountDao;

	/**
	 * @return Account
	 */
	public Account findAccountInfoByAccountInfoNumber(String accountNumber) {
		return accountDao.findAccountInfoByAccountInfoNumber(accountNumber);
	}

	/**
	 * @return  List<Account>
	 */
	public List<Account> getListAccountByIdCardActive(String idCardNumber) {
		return accountDao.getListAccountByIdCardActive(idCardNumber);
	}


	/**
	 * @return List<Account>
	 */
	public List<Account> getAccountListByIdCardNumber(String idCardNumber) {
		return accountDao.getAccountListByIdCardNumber(idCardNumber);
	}

}
